<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/boke/css/me.css"/>
</head>
<body>
<!--导航-->
<nav class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">Bk</h2>
            <a href="/boke/view/index" class="m-item item m-mobile-hide"><i class="mini home icon"></i>首页</a>
            <a href="/boke/view/types" class="active m-item item m-mobile-hide"><i class="mini idea icon"></i>分类</a>
            <a href="/boke/view/tags" class="m-item item m-mobile-hide"><i class="mini tags icon"></i>标签</a>
            <a href="/boke/view/about" class="m-item item m-mobile-hide"><i class="mini info icon"></i>关于我</a>
            <div class="right item m-mobile-hide">
                <div class="ui icon input">
<!--                    <input type="text" placeholder="Search....">-->
<!--                    <i class="search link icon"></i>-->
                </div>
            </div>
        </div>
    </div>
    <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>




<!--中间内容-->
<div class="m-container m-padded-tb-big">
    <div class="ui container">
        <div class="ui top attached segment">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <h3 class="ui teal header">分类</h3>
                </div>
                <div class="right aligned column">
                    共<h2 class="ui orange header m-inline-block m-text-thin" th:text="${counttype}"> &nbsp;14&nbsp; </h2>个
                </div>
            </div>
        </div>

        <div class="ui attached segment m-padded-tb-large">
            <div th:each="type,typezt:${stringLongtypeMap}"  class="ui labeled button m-margin-tb-tiny">
                <a th:href="@{|/view/types?typeName=${type.getKey()}|}" th:text="${type.getKey()}" class="ui basic button" th:classappend="${type.getKey() == typeName} ? 'teal' : ''">思考与感悟</a>
                <div th:text="${type.getValue()}" th:classappend="${type.getKey() == typeName} ? 'teal' : ''" class="ui basic left pointing label">24</div>
            </div>
        </div>

        <div class="ui top attached teal segment">
            <div class="ui padded vertical segment m-padded-tb-large" th:each="blog,blogzt:${bloglist}">
                <div class="ui mobile reversed stackable grid">
                    <div class="eleven wide column">
                        <a th:href="@{|/view/blogs?blogId=${blog.getId()}|}"><h3 class="ui header" th:text="${blog.getTitle()}"></h3></a>
                        <br>
                        <p class="m-text" th:text="|${blog.getOmitcontent()}......|">不由的看了一些诗词,略微感慨下情绪纷杂,记录下财务自由的概念,笑来老师对财富自由新解刷新我的认知。 什么是财富自由?我所理解的财富自由就是无需为生活开销而...</p>
                        <div class="ui grid">
                            <div class="row">
                                <div class="eleven wide column">
                                    <div class="ui horizontal link list">
                                        <div class="item">
                                            <img th:src="@{/images/grtx.jpg}" alt="" class="ui avatar image">
                                            <div class="content">
                                                <a th:href="@{|/view/about|}" class="header" th:text="${user.getNickname()}">李小</a>
                                            </div>
                                        </div>
                                        <div class="item">
                                            <i class="calendar icon"></i>&nbsp;<span th:text="${blog.getCreateDate()}">2017-10-6</span>
                                        </div>
                                        <div class="item">
                                            <i class="eye icon"></i>&nbsp;<span th:text="${blog.getViews()}">233</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="right aligned five wide column">
                                    <a th:href="@{|/view/types?typeName=${typeName}|}" target="_blank" class="ui teal basic label m-padded-tiny" th:text="${typeName}">认知升级</a>
                                </div>
                            </div>
                            <div class="row">
                                <div class="column">
                                    <a th:href="@{|/view/tags?tagName=${tag.getName()}|}" th:each="tag,tagzt:${blog.getTagList()}" th:text="${tag.getName()}" class="ui basic teal left pointing label m-padded-mini m-text-thin">121212</a>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="five wide column">
                        <a th:href="@{|/view/blogs?blogId=${blog.getId()}|}" target="_blank" >
                            <img th:src="${blog.getFirstPicture()}" alt="" class="ui rounded image" style="width: 400px;height: 150px"  >
                        </a>
                    </div>

                </div>
            </div>
        </div>


        <div class="ui bottom attached segment">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <a th:href="@{|/view/types?typeName=${typeName}&pc=${pc-1}|}" th:classappend="${hasPrevious} ? '' : 'disabled'" class="ui mini teal basic button">上一页</a>
                </div>
                <div class="right aligned column">
                    <a th:href="@{|/view/types?typeName=${typeName}&pc=${pc+1}|}" th:classappend="${hasNext} ? '' : 'disabled'"  class="ui mini teal basic button">下一页</a>
                </div>
            </div>
        </div>
    </div>




</div>



<!--尾部-->
<footer class="ui inverted vertical segment m-padded-tb-massive">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="/boke/images/grwx.jpg" class="ui rounded image img" alt="" style="width: 100px;">
                    </div>
                </div>
            </div>
            <div class ="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced ">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced ">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                <p class="ui m-text-thin m-text-spaced m-opacity-mini">探索我们“天天向上”的所有方法。了解我们的品牌标志。了解我们的安全流程。了解我们的贡献。者跳到我们的首页。</p>
            </div>
        </div>
    </div>
    <div class="ui inverted section divider">
        <p style="text-align: center; margin-top: 40px;" class="m-text-thin m-text-spaced m-opacity-mini">开发于2021.3.20</p>
    </div>

</footer>
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    })
</script>
</body>
</html>
